package com.zw.a.basic.a06.demo05_constructor;

//子类
public class Son extends Father{
    public Son() {
        super();   //子类的空参访问父类的空参
        System.out.println("Son类的 空参构造, 用来初始化子类内容");
    }

    public Son(String name) {
        super(name);        //子类的带参访问父类的带参.
        //this();
        System.out.println("Son类的 带参构造, 用来初始化子类内容");
    }
}
